﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Lesson
{
    public partial class add_grammar_example : System.Web.UI.Page
    {
        public int stt,last;
        public string content, mean;
        protected void Page_Load(object sender, EventArgs e)
        {
            int id=int.Parse(Request.QueryString["id"]);
            stt = int.Parse(Request.QueryString["stt"]);
            content = Request.QueryString["content"];
            mean = Request.QueryString["mean"];
            new TblLessonGrammarExampleController().Insert(id, content, mean);
            var get_last = new TblLessonGrammarExampleController().FetchAll().Last();
            last = get_last.ExamId;
        }
    }
}